
<h2>Article <%= @article.title %>'s Photos</h2>


  <p><%= link_to 'Upload a new photo', article_new_photo_path() %></p>


<%= render :partial => 'photos/page_links' %>

<ul id="photos">
  <%= render :partial => 'photos/photo', :collection => @photos %>
</ul>

<%= render :partial => 'photos/page_links' %>

<h3>Manage Download Images</h3>
<table id="images">
  <tr>
    <th>Url address</th>
    <th>Image</th>
    <th>Operation</th>
  </tr>
  <%= render :partial => 'imageurl', :collection => Imageurl.find(:all,:conditions=>['imageurls.article_id = ?', @article.id ]) %>
</table> 